package com.huajx.mina.tcpserver.exception;

import com.huajx.tcpserver.kit.MessageFormatter;

public class TcpServerException extends RuntimeException{

	private static final long serialVersionUID = 5182368527769735776L;

	public TcpServerException() {
		super();
	}

	public TcpServerException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
		super(message, cause, enableSuppression, writableStackTrace);
	}

	public TcpServerException(String message, Throwable cause) {
		super(message, cause);
	}

	public TcpServerException(String message) {
		super(message);
	}

	public TcpServerException(Throwable cause) {
		super(cause);
	}
	
	public TcpServerException(String pattern, Object... objs){
		super(MessageFormatter.arrayFormat(pattern, objs).getMessage());
	}
}
